EXTRA_CFLAGS	:=	-DCONFIG_BLK_DEV_RAMZSWAP_STATS \
			-g -Wall

obj-m	+=	sub-projects/allocators/xvmalloc-kmod/xvmalloc.o \
		ramzswap.o
# obj-m	+=	ramzswap.o

all:
	make -C /lib/modules/$(shell uname -r)/build \
		M=$(PWD)/sub-projects/allocators/xvmalloc-kmod modules
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
	@ln -sf sub-projects/allocators/xvmalloc-kmod/xvmalloc.ko

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
	@rm -rf *.ko
